package cn.tx.service.impl;

import cn.tx.dubbo.client.UserInfoService;
import cn.tx.pojo.domain.User;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

// dubbo提供的Service注解，用于声明对外暴露服务
// Service引入的是org.apache.dubbo.config.annotation.Service包
@Component
@DubboService
public class UserServiceImpl implements UserInfoService {

    @Override
    public User getUserInfo() {
        return new User(1010L,"姜雪宁","hello，这里是dubbo-provider-user模块");
    }

    @Override
    public String testService() {
        return "AutoIdempotent===》Success!";
    }

}
